import { createApp } from "vue";
// import './style.css'
import App from "@/App.vue";
import ElementPlus from "element-plus";

import "element-plus/dist/index.css";
//引入暗黑模式
import "element-plus/theme-chalk/dark/css-vars.css";
import "virtual:svg-icons-register";
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import glooball from "@/components";
// import SvgIcon from "@/components/SvgIcons/index.vue";
//引入集成scss
import "@/styles/index.scss";
//引入路由模块
import router from "@/router/index.ts";
//引入仓库
import pinia from "./store";
//引入路由守卫
import "./permission";
//引入自定义指令
import { isHasButton } from "./hook";

const app = createApp(App);
isHasButton(app);
app.use(pinia);
app.use(router);
app.use(glooball);
// app.component("SvgIcon", SvgIcon);
app.use(ElementPlus, { locale: zhCn });
app.mount("#app");
